[INFO] cloning repository https://github.com/PoorlyDefinedBehaviour/retry-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PoorlyDefinedBehaviour/retry-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoorlyDefinedBehaviour%2Fretry-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoorlyDefinedBehaviour%2Fretry-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e2d424873ba17b3d898fb2e1b3c556afd9ebe454
[INFO] checking PoorlyDefinedBehaviour/retry-rs against master#fdca237d5194bf8a1c9b437ebd2114d1c2ba6195 for pr-97739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPoorlyDefinedBehaviour%2Fretry-rs" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/PoorlyDefinedBehaviour/retry-rs on toolchain fdca237d5194bf8a1c9b437ebd2114d1c2ba6195
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/PoorlyDefinedBehaviour/retry-rs
[INFO] finished tweaking git repo https://github.com/PoorlyDefinedBehaviour/retry-rs
[INFO] tweaked toml for git repo https://github.com/PoorlyDefinedBehaviour/retry-rs written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/PoorlyDefinedBehaviour/retry-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c01d7ca6b6689e1b24985c46cfdfd45e0f111ee426564a3c43f32741b064017c
[INFO] running `Command { std: "docker" "start" "-a" "c01d7ca6b6689e1b24985c46cfdfd45e0f111ee426564a3c43f32741b064017c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c01d7ca6b6689e1b24985c46cfdfd45e0f111ee426564a3c43f32741b064017c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c01d7ca6b6689e1b24985c46cfdfd45e0f111ee426564a3c43f32741b064017c", kill_on_drop: false }`
[INFO] [stdout] c01d7ca6b6689e1b24985c46cfdfd45e0f111ee426564a3c43f32741b064017c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9de61b18569186aa9c18fce3148e48f76f7d2cdd6a2bbcbff87164856af6a105
[INFO] running `Command { std: "docker" "start" "-a" "9de61b18569186aa9c18fce3148e48f76f7d2cdd6a2bbcbff87164856af6a105", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling libc v0.2.121
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.89
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking pin-project-lite v0.2.8
[INFO] [stderr]     Checking ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]    Compiling async-trait v0.1.52
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]     Checking fastrand v1.7.0
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking either v1.7.0
[INFO] [stderr]     Checking bit-vec v0.6.3
[INFO] [stderr]     Checking quick-error v1.2.3
[INFO] [stderr]     Checking predicates-core v1.0.3
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]     Checking normalize-line-endings v0.3.0
[INFO] [stderr]     Checking difflib v0.4.0
[INFO] [stderr]     Checking termtree v0.2.4
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking quick-error v2.0.1
[INFO] [stderr]     Checking fragile v1.2.1
[INFO] [stderr]     Checking downcast v0.11.0
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]     Checking resilience v0.1.0 (/opt/rustwide/workdir/resilience)
[INFO] [stderr]     Checking tracing-core v0.1.23
[INFO] [stderr]     Checking itertools v0.10.3
[INFO] [stderr]     Checking bit-set v0.5.2
[INFO] [stderr]     Checking predicates-tree v1.0.5
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]    Compiling quote v1.0.16
[INFO] [stderr]     Checking getrandom v0.2.5
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking tempfile v3.3.0
[INFO] [stderr]     Checking wait-timeout v0.2.0
[INFO] [stderr]     Checking rusty-fork v0.3.0
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand_xorshift v0.3.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking float-cmp v0.9.0
[INFO] [stderr]     Checking regex v1.5.5
[INFO] [stderr]     Checking proptest v1.0.0
[INFO] [stderr]     Checking predicates v2.1.1
[INFO] [stderr]    Compiling tokio-macros v1.7.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.20
[INFO] [stderr]    Compiling async-stream-impl v0.3.3
[INFO] [stderr]    Compiling mockall_derive v0.11.1
[INFO] [stderr]     Checking async-stream v0.3.3
[INFO] [stderr]     Checking tokio v1.17.0
[INFO] [stderr]     Checking tracing v0.1.32
[INFO] [stderr]     Checking retry v0.1.0 (/opt/rustwide/workdir/retry)
[INFO] [stderr]     Checking tokio-stream v0.1.9
[INFO] [stderr]     Checking circuit_breaker v0.1.0 (/opt/rustwide/workdir/circuit_breaker)
[INFO] [stdout] warning: unused import: `cell::Cell`
[INFO] [stdout]  --> circuit_breaker/src/lib.rs:2:3
[INFO] [stdout]   |
[INFO] [stdout] 2 |   cell::Cell,
[INFO] [stdout]   |   ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking tokio-test v0.4.2
[INFO] [stderr]     Checking mockall v0.11.1
[INFO] [stdout] warning: unused variable: `expect`
[INFO] [stdout]    --> circuit_breaker/src/lib.rs:219:13
[INFO] [stdout]     |
[INFO] [stdout] 219 |         let expect =        MockBackoff::new()
[INFO] [stdout]     |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_expect`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `tries`, which is owned by the current function
[INFO] [stdout]    --> circuit_breaker/src/lib.rs:222:19
[INFO] [stdout]     |
[INFO] [stdout] 222 |         .withf_st(|retry_number| *retry_number == tries.get() as usize)
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^                  ----- `tries` is borrowed here
[INFO] [stdout]     |                   |
[INFO] [stdout]     |                   may outlive borrowed value `tries`
[INFO] [stdout]     |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]    --> circuit_breaker/src/lib.rs:219:29
[INFO] [stdout]     |
[INFO] [stdout] 219 |           let expect =        MockBackoff::new()
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 220 | |         .expect_wait()
[INFO] [stdout] 221 | |         .times(num_retries as usize)
[INFO] [stdout] 222 | |         .withf_st(|retry_number| *retry_number == tries.get() as usize)
[INFO] [stdout]     | |_______________________________________________________________________^
[INFO] [stdout] help: to force the closure to take ownership of `tries` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]     |
[INFO] [stdout] 222 |         .withf_st(move |retry_number| *retry_number == tries.get() as usize)
[INFO] [stdout]     |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `times_backoff_got_called`, which is owned by the current function
[INFO] [stdout]    --> circuit_breaker/src/lib.rs:223:23
[INFO] [stdout]     |
[INFO] [stdout] 223 |         .returning_st(|_| times_backoff_got_called.set(times_backoff_got_called.get()+1));
[INFO] [stdout]     |                       ^^^ ------------------------ `times_backoff_got_called` is borrowed here
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       may outlive borrowed value `times_backoff_got_called`
[INFO] [stdout]     |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]    --> circuit_breaker/src/lib.rs:219:29
[INFO] [stdout]     |
[INFO] [stdout] 219 |           let expect =        MockBackoff::new()
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 220 | |         .expect_wait()
[INFO] [stdout] 221 | |         .times(num_retries as usize)
[INFO] [stdout] 222 | |         .withf_st(|retry_number| *retry_number == tries.get() as usize)
[INFO] [stdout] 223 | |         .returning_st(|_| times_backoff_got_called.set(times_backoff_got_called.get()+1));
[INFO] [stdout]     | |_________________________________________________________________________________________^
[INFO] [stdout] help: to force the closure to take ownership of `times_backoff_got_called` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]     |
[INFO] [stdout] 223 |         .returning_st(move |_| times_backoff_got_called.set(times_backoff_got_called.get()+1));
[INFO] [stdout]     |                       ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0373`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `circuit_breaker` due to 3 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "9de61b18569186aa9c18fce3148e48f76f7d2cdd6a2bbcbff87164856af6a105", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9de61b18569186aa9c18fce3148e48f76f7d2cdd6a2bbcbff87164856af6a105", kill_on_drop: false }`
[INFO] [stdout] 9de61b18569186aa9c18fce3148e48f76f7d2cdd6a2bbcbff87164856af6a105
